.center {
  :global {
    display: flex;
    width: 40vw;
    height: 80vh;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    flex-direction: column;
    padding: 16px;
    flex: 1;

    .message {
      display: flex;
      flex-direction: column;
      margin-bottom: 10px;

      &.left {
        align-items: flex-start;

        .content {
          display: flex;
          align-items: start;

          .message_bubble {
            max-width: 100%;
            padding: 10px;
            background-color: #f0f0f0;
            border-radius: 10px;
            word-wrap: break-word;
            margin: 0 10px;
          }
        }
      }

      &.right {
        align-items: flex-end;

        .content {
          display: flex;
          align-items: flex-end;
          justify-content: flex-end;

          .message_bubble {
            max-width: 100%;
            padding: 10px;
            background-color: #f0f0f0;
            border-radius: 10px;
            word-wrap: break-word;
            margin: 0 10px;
          }
        }
      }

      .message_header {
        display: flex;
        align-items: center;
        flex-direction: column;

        .avatar {
          width: 32px;
          height: 32px;
          border-radius: 50%;
          margin-right: 10px;
        }

        .from_name {
          font-size: 14px;
          color: #555;
        }
      }

      &_time {
        font-size: 13px;
        font-weight: 500;
        color: #999;
        margin: 0 20px;
      }
    }
  }
}
